package com.zhuguang.jack;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.view.RedirectView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/common")
public class CommonController {


    @ModelAttribute("hello")
    public String getModel() {
        System.out.println("-------------Hello---------");
        return "world";
    }

    @ModelAttribute("intValue")
    public int getInteger() {
        System.out.println("-------------intValue---------------");
        return 10;
    }




}
